package com.ruoyi.forum.service;

import java.util.List;
import com.ruoyi.forum.domain.ForumPostCollect;
import com.ruoyi.forum.domain.vo.PostCollectUpvote;

/**
 * 贴子-收藏Service接口
 * 
 * @author ruoyi
 * @date 2024-02-13
 */
public interface IForumPostCollectService 
{
    /**
     * 查询贴子-收藏
     * 
     * @param id 贴子-收藏主键
     * @return 贴子-收藏
     */
    public ForumPostCollect selectForumPostCollectById(Long id);

    /**
     * 查询贴子-收藏列表
     * 
     * @param forumPostCollect 贴子-收藏
     * @return 贴子-收藏集合
     */
    public List<ForumPostCollect> selectForumPostCollectList(ForumPostCollect forumPostCollect);

    /**
     * 新增贴子-收藏
     * 
     * @param forumPostCollect 贴子-收藏
     * @return 结果
     */
    public int insertForumPostCollect(ForumPostCollect forumPostCollect);

    /**
     * 修改贴子-收藏
     * 
     * @param forumPostCollect 贴子-收藏
     * @return 结果
     */
    public int updateForumPostCollect(ForumPostCollect forumPostCollect);

    /**
     * 批量删除贴子-收藏
     * 
     * @param ids 需要删除的贴子-收藏主键集合
     * @return 结果
     */
    public int deleteForumPostCollectByIds(Long[] ids);


    /**
     * 批量删除贴子-点赞
     *
     * @param postCollectUpvote 需要删除的贴子-点赞用户id和帖子id
     * @return 结果
     */
    public int deleteForumPostCollectByUserPost(PostCollectUpvote postCollectUpvote);

    /**
     * 删除贴子-收藏信息
     * 
     * @param id 贴子-收藏主键
     * @return 结果
     */
    public int deleteForumPostCollectById(Long id);
}
